<?php defined('SYSPATH') OR die('No direct access allowed.');

class Editor {

    public static function fck_editor($args = array()) {
        $default_args = array('width'=>0 ,'height'=>0, 'name'=>'', 'value'=>'');
        $args += $default_args;
        require DOCROOT . 'arlicle/modules/arlicle/webroot/js/fckeditor/fckeditor.php';
        $sBasePath = url::base() . 'arlicle/modules/arlicle/webroot/js/fckeditor/';
        $oFCKeditor = new FCKeditor($args['name']);
        $oFCKeditor->BasePath = $sBasePath;
        $oFCKeditor->Width = $args['width'];
        $oFCKeditor->Height= $args['height'];
        $oFCKeditor->Value = $args['value'];
        $oFCKeditor->Create();
    }
}
